﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using MaxLeaf.Platform.DataContract;

namespace MaxLeaf.Platform.Contract
{
    /// <summary>
    /// 公司相关操作
    /// </summary>
    [ServiceContract]
    [ServiceKnownType(typeof(mCompanyDataModel))]
    [ServiceKnownType(typeof(mCompany_InfoDataModel))]
    [ServiceKnownType(typeof(SCPCategoryDataModel))]
    [ServiceKnownType(typeof(List<SCPCategoryDataModel>))]
    [ServiceKnownType(typeof(mUser_MainDataModel))]
    [ServiceKnownType(typeof(mUser_InfoDataModel))]
    public interface ICompanyProcess
    {
        [OperationContract]
        bool InitData(int intFromCompanyID, int intToCompanyID);


        [OperationContract]
        string GetUserSN(bool blnDirectCity, int intProvID, int intCityID, int intRegionID);

        [OperationContract]
        int AddCompany(mCompanyDataModel company, mCompany_InfoDataModel company_info, List<SCPCategoryDataModel> lstSCP, mUser_MainDataModel user, mUser_InfoDataModel user_info);

        [OperationContract]
        int AddUser(mUser_MainDataModel User, mUser_InfoDataModel User_info);
    }
}


